package com.quzi.kettle.api.response;

import java.util.List;

import com.example.httprequest.BaseResponseHandler;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.quzi.kettle.bean.http.KettleDevice;

public abstract class DeviceListResponse<tt extends List<KettleDevice>> extends BaseResponseHandler<List> {

	@Override
	public void onDataReceived(String str) {
		t = new Gson().fromJson(str, new TypeToken<List<KettleDevice>>(){}.getType());
		onSuccess(t);
	}
}
